package gorm.springboot.demo

class Test {

    static def test(int a, int b) {
        Closure closure = { c, d -> return c + d }
        closure(a, b)

    }

    static void main(String[] args) {

        def d = test(1, 2)
        println("闭包:"+d)
    }
}
